﻿@model MediaAdmin.Controllers.AssetController.EditModel

@{
    ViewBag.Title = "Edit media asset locators";
}

<h2>Edit media asset locators</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>EditModel</legend>

        @Html.HiddenFor(model => model.Id)
        <br />

        <h5>Available locators</h5>

        @Html.Partial("LocatorSelector", Model.AvailableLocators)

        <br /> <hr />
        
        <h5>Attach new locators</h5>
          
        <div class="display-field">
            @Html.EditorFor(model => model.NewSasReadLocator) <strong>@Html.DisplayNameFor(model => model.NewSasReadLocator)</strong>
        </div>

        <div class="display-field">
            @Html.EditorFor(model => model.NewSasWriteLocator) <strong>@Html.DisplayNameFor(model => model.NewSasWriteLocator)</strong>
        </div>

        <div class="display-field">
            @Html.EditorFor(model => model.NewStreamingLocator) <strong>@Html.DisplayNameFor(model => model.NewStreamingLocator)</strong>
        </div>

        <br /> <hr />

        <p>
            <input type="submit" value="Apply" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>


